package cn.tedu.oop;

public class Test5_Block {
    public static void main(String[] args) {
        StaticDemo s = new StaticDemo();
        s.show();

        StaticDemo s2 = new StaticDemo();
    }
}
class StaticDemo{
    static {
        System.out.println("静态代码块");
    }
    {
        System.out.println("构造代码块");
    }
    public StaticDemo(){
        System.out.println("构造方法");
    }
    public void show(){
        {
            System.out.println("局部代码块");
        }
    }
}